document.addEventListener('DOMContentLoaded', function () {
    const logo = document.querySelector('.main-logo');
    if (logo) {
        logo.addEventListener('mouseenter', function () {
            // 生成动态粒子
            for (let i = 0; i < 5; i++) {
                const particle = document.createElement('div');
                particle.className = 'particle';
                particle.style.left = `${Math.random() * 100}%`;
                particle.style.top = `${Math.random() * 100}%`;
                logo.parentElement.appendChild(particle);

                // 动画结束后移除元素
                setTimeout(() => particle.remove(), 1000);
            }
        });
    }
});

